package Test;

public class Point {
    private float x,y,z,w;
    public Point(){}
    public Point(float x,float y,float z){
        this(x,y);//调用Point(float x,float y),使用this调用构造函数必须写在第一行
        this.z=z;


    }
    public Point(float x,float y){
        this();
        this.x=x;
        this.y=y;
    }
    public Point(float x,float y,int z,int w){
        this(x, y);
        this.z=z;
        this.w=w;
    }

    public void SetVariety(float x,float y,float z){
        this.x=x;
        this.y=y;
        this.z=z;
    }
    public void showInfo(){
        System.out.println("x:"+x+" "+"y:"+y+" "+"z:"+z);
    }
}
